package com.benz.order.util.exception;

public class DivideTest3 {
    public static void main(String[] args) {
        int ret = 0;
        System.out.println("1");
        int[] arr = {1,3,5};
        //try {
            System.out.println("2");
            //ret = divide(4,20);
            System.out.println("3");
            System.out.println(arr[3]);
       // } catch ( Exception e) {
            System.out.println("4");
            //System.out.println("捕获到的异常信息："+e.getMessage());
            //return;
            //System.exit(0);
        //} finally {
            System.out.println("<finally>"+ret);
            System.out.println("5");
        //}
        System.out.println("ret:"+ret);
        System.out.println("6");
    }
    static int divide(int x,int y) throws Exception {
        int ret = x/y;
        return ret;
    }
}
